% !TEX program=xelatex

% nobabel means you'll need to provide your own month names, week day headings,
% etc
\documentclass[12pt,nobabel,sundayweek]{cdcalendar}
%% and here we do some settings for a calendar in Chinese
%% (*not* the lunar calendar! Just localising the Gregorian calendar into
%% Chinese)
\usepackage{zh-mod}

\setmainfont[Ligatures=TeX]{EB Garamond}
\setsansfont[Ligatures=TeX,BoldItalicFont=Fira Sans Italic,BoldFont=Fira Sans,Numbers=OldStyle]{Fira Sans Light}

\title{Desktop Calendar (fits CD jewel case) with Chinese Localisation}

\usepackage{graphicx}
\usepackage{fontawesome}
\usepackage{wallpaper}

\graphicspath{{img/}}

%% Define all event mark styles here
\tikzset{holiday/.style={rectangle,fill=orange!70}}
\tikzset{pink icon/.style={text=Pink,font=\large}}
\tikzset{blue icon/.style={text=SkyBlue,font=\large}}

\begin{document}

%%%%%%
% Cover
%%%%%%

\coverBgColor{RoyalBlue!40!black}
\coverImage[\color{gray!50}BY-SA 3.0. \url{ https://commons.wikimedia.org/w/index.php?curid=19011812}]
{Yuan_Jingdezhen_dragon_and_pearl_dish}

\coverTitle[
font=\fontsize{26pt}{30pt}\heiti,
text width=\linewidth,align=flush right,white]
{二〇一九年历，再努力！}

\makeCover

% Remove this line if you feel the background pattern is too annoying
\TileWallPaper{.5\paperwidth}{.1\paperheight}{lightpaperfibers}


%%%% Remove this page if you don't need it --
%%%% just to show the actual output
{\centering
\includegraphics[width=\textwidth]{actual}
\par}

{\scriptsize
实际印刷出来的台历效果。较小尺寸的（\texttt{small} 选项，9\,cm $\times$ 9.5\,cm）适用3.5寸软盘盒（家里有这些古董的可以派上用场了）。较大尺寸的（默认设定，11.7\,cm $\times$ 13.65\,cm）则适用CD盒。另外还有\texttt{giant}选项，一页A4纸就一个月历。
\par}

\clearpage
%%%%

% You may find the gap between illustrations and events too narrow;
% Use this length to incrase it
\setlength{\illusSkip}{1.5\ccwd}


%%%%%%
% Some settings for the monthly calendars
%%%%%%
\dayHeadingStyle{font=\sffamily\color{gray!90}}
\sundayColor{red}
\monthTitleStyle{font={\fontsize{42pt}{44pt}\bfseries\sffamily\fangsong}, red!50!RedViolet}
\eventStyle{\scriptsize\songti}
\renewcommand\printeventname[1]{{\heiti #1}}


\illustration[花。金农， 1754。 公有领域(Public Domain). \url{http://bit.ly/2hed962}]
{8.5cm}{Flower_JinNong}


\begin{monthCalendar}{2019}{01}

\event[mark style=holiday]{2019-01-01}{2}{元旦+补休}
\event[mark style=holiday]{2019-01-27}{2019-2-2}{春节连休}
\event[mark style=blue icon, marker=\faBriefcase]
{2019-01-22}{}{春节调休上班}

\end{monthCalendar}

\clearpage

% 这一页"图"和月历距离可以大一些
\setlength{\illusSkip}{1cm}
\otherstuff[金玉良言，苦口良药]
{8.5cm}{{\fontsize{48pt}{52pt}\fangsong\textcolor{red}{写}}%
        {\LARGE\kaishu，不停地写。}}

\begin{monthCalendar}{2019}{02}

\event[mark style=holiday]{2019-01-27}{2019-2-2}{春节连休}
\event[mark style=blue icon, marker=\faBriefcase]
{2019-02-04}{}{春节调休上班}
\event[mark style=pink icon,marker=\faBirthdayCake]{2019-02-14}{}{朋友生日}
\event{2019-02-22}{}{稿件死线！！}
\event{2019-02-28}{2019-03-02}{旅游去！}

\end{monthCalendar}

\clearpage

% \illustration[这是实物]
% {6.5cm}{actual}
\otherstuff[今天我 寒夜里看雪飘过]
{8.5cm}{\huge 海阔天空}

\begin{monthCalendar}{2019}{03}
\event{2019-02-28}{2019-03-02}{旅游去！}

\event[mark style=holiday]{2019-03-08}{}{妇女节}

\event[mark style=blue icon,marker=\faBriefcase]{2019-03-10}{2019-03-15}{上海出差}
\end{monthCalendar}

\end{document}
